$(document).ready(function () {
  var url = 'http://127.0.0.1:8080/homework_war_exploded/';
  function init() {
    $.ajax({
      type: "get",
      url: url + "user/getUserList.do",
      dataType: "json",
      success: function (v) {
        var table = "<tr><th>账号</th><th>角色</th><th>姓名</th></tr>";
        if(v.success){
          // alert("获取数据成功");
          $.each(v.data,function (index,d) {
            table += '<tr>'
              +'<td>'+d.user_account+'</td>'
              +'<td>'+d.user_role+'</td>'
              +'<td>'+d.user_name+'</td>'
              + '</tr>'
          });
          $("#tb").html(table);
        }else{
          alert("获取数据失败!");
        }
      }
    })
  }

  init();
})

var names = ['s','s','d'];
for(var a in names){
  names[a]
}
